package demo.pay.utils;

public class Response {
    final int httpStatus;
    final String body;
    public Response(int httpStatus,String body) {
        this.httpStatus = httpStatus;
        this.body = body;
    }

    public int getHttpStatus() {
        return httpStatus;
    }

    public String getBody() {
        return body;
    }

    public static class Builder {
        protected int httpStatus;
        protected String body;
        public Builder() {

        }

        public Response build(){
            return new Response(httpStatus, body);
        }

        public Response.Builder status(int httpStatus){
            this.httpStatus = httpStatus;
            return this;
        }

        public Response.Builder body(String body){
            this.body = body;
            return this;
        }

    }


}
